package com.chaos.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.chaos.framework.model.entity.AutoIdModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author Jacky.Cui
 * @since 2024-12-02
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_tenant")
@ApiModel(value = "TTenant实体", description = "租户：B 端用户")
public class TTenant extends AutoIdModel {


    @ApiModelProperty(value = "phone")
    @TableField("phone")
    private String phone;


    @ApiModelProperty(value = "头像")
    @TableField("avatar")
    private String avatar;


    @ApiModelProperty(value = "用户备注")
    @TableField("remark")
    private String remark;


    @ApiModelProperty(value = "最后登陆")
    @TableField("last_login_time")
    private LocalDateTime lastLoginTime;


    @ApiModelProperty(value = "用户状态 1 已删除 0 在使用中")
    @TableField("status")
    private Integer status;


    @ApiModelProperty(value = "租户名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "统一社会信用代码")
    @TableField("unified_social_credit_code")
    private String unifiedSocialCreditCode;

    @ApiModelProperty(value = "服务有效期开始")
    @TableField("service_validity_period_begin")
    private LocalDate serviceValidityPeriodBegin;

    @ApiModelProperty(value = "服务有效期结束")
    @TableField("service_validity_period_end")
    private LocalDate serviceValidityPeriodEnd;

    @ApiModelProperty(value = "企业简称")
    @TableField("short_name")
    private String shortName;

    @ApiModelProperty(value = "联系人手机号")
    @TableField("contact_phone")
    private String contactPhone;

    @ApiModelProperty(value = "联系人姓名")
    @TableField("contact_name")
    private String contactName;

    @ApiModelProperty(value = "公司名全称")
    @TableField("company_full_name")
    private String companyFullName;

    @ApiModelProperty(value = "企业编码")
    @TableField("enterprise_code")
    private String enterpriseCode;

    @ApiModelProperty(value = "联系人电话")
    @TableField("contact_telephone")
    private String contactTelephone;

    @ApiModelProperty(value = "联系地址")
    @TableField("contact_address")
    private String contactAddress;


}
